// 导入所有样式文件
@use './variables.scss' as *;
@use './mixins.scss' as *;
@use './reset.scss';
@use './themes.scss';
@use './animations.scss';

// ==================== 全局工具类 ====================
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 $spacing-lg;
  
  @include respond-to('xl') {
    padding: 0 $spacing-2xl;
  }
}

.section {
  padding: $spacing-3xl 0;
  
  @include respond-to('md') {
    padding: 5rem 0;
  }
}

.section-title {
  font-size: $font-size-3xl;
  font-weight: $font-weight-bold;
  text-align: center;
  margin-bottom: $spacing-2xl;
  position: relative;
  
  &::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: $primary-color;
    margin: $spacing-md auto 0;
    border-radius: $radius-full;
  }
  
  @include respond-to('md') {
    font-size: $font-size-4xl;
  }
}

.text-gradient {
  background: linear-gradient(135deg, $primary-color, $secondary-color);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: $spacing-sm $spacing-lg;
  font-size: $font-size-base;
  font-weight: $font-weight-medium;
  border-radius: $radius-md;
  cursor: pointer;
  @include transition(all);
  
  &-primary {
    background: $primary-color;
    color: white;
    
    &:hover {
      background: $primary-dark;
      transform: translateY(-2px);
      box-shadow: $shadow-lg;
    }
  }
  
  &-outline {
    border: 2px solid $primary-color;
    color: $primary-color;
    
    &:hover {
      background: $primary-color;
      color: white;
    }
  }
}

// ==================== 懒加载样式 ====================
.lazy-loading {
  background: var(--bg-secondary);
  animation: pulse 1.5s ease-in-out infinite;
}

.lazy-loaded {
  animation: fadeIn 0.5s ease-in-out;
}

.lazy-error {
  background: var(--bg-secondary);
  opacity: 0.5;
}

// ==================== 滚动条样式 ====================
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: $primary-color;
  border-radius: $radius-full;
  
  &:hover {
    background: $primary-dark;
  }
}

